package com.work.user.pojo;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@Table(name = "t_user")
@Data
public class User implements Serializable {
    @Id
    private Integer id;//编号
    private String name;//姓名
    private String username;//登录名
    private String password;//密码
    private String email;//邮箱
    private String phone;//电话
    private String status;//是否启用  1:活跃。0:停用
    private Set<Role> roles = new HashSet<>();
}
